<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 17-4-13
 * Time: 下午5:33
 */

namespace common\services\common;

use common\repositories\common\MyscrmContractSyncDeleteDataRepository;
use common\services\BaseService;

class MyscrmContractSyncDeleteDataService extends BaseService
{
    protected $repository;

    public function __construct(MyscrmContractSyncDeleteDataRepository $repository, $config = [])
    {
        $this->repository = $repository;

        return parent::__construct($config);
    }

    public function addData($tableName, $primaryName, $dataId)
    {
        return $this->repository->add($tableName, $primaryName, $dataId);
    }
}